package com.example.demo.service;

import com.example.demo.entity.Classroom;
import com.example.demo.mapper.ClassroomMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public class ClassroomServicesImp implements ClassroomServices{

    @Autowired
    ClassroomMapper classroomMapper;


    @Override
    public ArrayList<Classroom> getAll() {
        return classroomMapper.getAll();
    }

    @Override
    public ArrayList<Classroom> getAllByStus() {
        return classroomMapper.getAllByStus();
    }
}
